package com.xqh.study.springbootdemo.web;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName HomeResource
 * @Description TODO
 * @Author xuqianghui
 * @Date 2019/12/29 20:23
 * @Version 1.0
 */
@RestController
@RequestMapping("/api")
public class HomeResource {

    @GetMapping(value = "hello")
    public String hello(){
        return "Hello World!";
    }
}
